//
//  ZJPictureBrowserLayout.swift
//  PictureBrowser
//
//  Created by zhengju on 2017/7/27.
//  Copyright © 2017年 zhengju. All rights reserved.
//

import UIKit

class ZJPictureBrowserLayout: UICollectionViewFlowLayout {
    override init() {
        super.init()
        
        //设置滚动方向,水平
        self.scrollDirection = .horizontal
        
        //设置每一个元素的大小
        self.itemSize = CGSize(width:UIWindow.init().bounds.size.width
            ,height:UIWindow.init().bounds.size.height)

        self.minimumLineSpacing = 0
        
        self.minimumInteritemSpacing  = 0
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
